﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Chinesys.Domain.Helpers;
using Chinesys.Entities;
using Chinesys.Domain;
using Chinesys.DataModel;

namespace Chinesys.Test
{
    [TestClass]
    public class DomainHelper
    {
        [TestMethod]
        public void TestMethod1()
        {
            string encUno = Encryptor.GetSHA1("test");
            string encDos = Encryptor.GetSHA1("test");



            Assert.AreEqual(encDos, encUno);
        }

        [TestMethod]
        public void TestEntity()
        {
            UserEntity user = new UserEntity();

            List<UserEntity> list = UserDomain.GetAll();

            Assert.AreEqual(list.Count, 0);
        }
    }
}
